package StringOperation;

public class offer58 {
    public String reverseLeftWords(String s, int n) {
        String s1 = s.substring(n);
        String s2 = s.substring(0, n);
   return  s1+s2;
    }

    public static void main(String[] args) {
        offer58 offer58 = new offer58();
        System.out.println(offer58.reverseLeftWords("abcdefg", 2));

    }
}